<?php
/*
 * Copyright (c) 2017-2025 Tencent. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
namespace TencentCloud\Tke\V20180525\Models;
use TencentCloud\Common\AbstractModel;

/**
 * AddExistedInstances response structure.
 *
 * @method array getFailedInstanceIds() Obtain IDs of failed nodes
Note: This field may return null, indicating that no valid value was found.
 * @method void setFailedInstanceIds(array $FailedInstanceIds) Set IDs of failed nodes
Note: This field may return null, indicating that no valid value was found.
 * @method array getSuccInstanceIds() Obtain IDs of successful nodes
Note: This field may return null, indicating that no valid value was found.
 * @method void setSuccInstanceIds(array $SuccInstanceIds) Set IDs of successful nodes
Note: This field may return null, indicating that no valid value was found.
 * @method array getTimeoutInstanceIds() Obtain IDs of (successful or failed) nodes that timed out
Note: This field may return null, indicating that no valid value was found.
 * @method void setTimeoutInstanceIds(array $TimeoutInstanceIds) Set IDs of (successful or failed) nodes that timed out
Note: This field may return null, indicating that no valid value was found.
 * @method array getFailedReasons() Obtain Causes of the failure to add a node to a cluster
Note: this field may return `null`, indicating that no valid value is obtained.
 * @method void setFailedReasons(array $FailedReasons) Set Causes of the failure to add a node to a cluster
Note: this field may return `null`, indicating that no valid value is obtained.
 * @method string getRequestId() Obtain The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 * @method void setRequestId(string $RequestId) Set The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
 */
class AddExistedInstancesResponse extends AbstractModel
{
    /**
     * @var array IDs of failed nodes
Note: This field may return null, indicating that no valid value was found.
     */
    public $FailedInstanceIds;

    /**
     * @var array IDs of successful nodes
Note: This field may return null, indicating that no valid value was found.
     */
    public $SuccInstanceIds;

    /**
     * @var array IDs of (successful or failed) nodes that timed out
Note: This field may return null, indicating that no valid value was found.
     */
    public $TimeoutInstanceIds;

    /**
     * @var array Causes of the failure to add a node to a cluster
Note: this field may return `null`, indicating that no valid value is obtained.
     */
    public $FailedReasons;

    /**
     * @var string The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    public $RequestId;

    /**
     * @param array $FailedInstanceIds IDs of failed nodes
Note: This field may return null, indicating that no valid value was found.
     * @param array $SuccInstanceIds IDs of successful nodes
Note: This field may return null, indicating that no valid value was found.
     * @param array $TimeoutInstanceIds IDs of (successful or failed) nodes that timed out
Note: This field may return null, indicating that no valid value was found.
     * @param array $FailedReasons Causes of the failure to add a node to a cluster
Note: this field may return `null`, indicating that no valid value is obtained.
     * @param string $RequestId The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem.
     */
    function __construct()
    {

    }

    /**
     * For internal only. DO NOT USE IT.
     */
    public function deserialize($param)
    {
        if ($param === null) {
            return;
        }
        if (array_key_exists("FailedInstanceIds",$param) and $param["FailedInstanceIds"] !== null) {
            $this->FailedInstanceIds = $param["FailedInstanceIds"];
        }

        if (array_key_exists("SuccInstanceIds",$param) and $param["SuccInstanceIds"] !== null) {
            $this->SuccInstanceIds = $param["SuccInstanceIds"];
        }

        if (array_key_exists("TimeoutInstanceIds",$param) and $param["TimeoutInstanceIds"] !== null) {
            $this->TimeoutInstanceIds = $param["TimeoutInstanceIds"];
        }

        if (array_key_exists("FailedReasons",$param) and $param["FailedReasons"] !== null) {
            $this->FailedReasons = $param["FailedReasons"];
        }

        if (array_key_exists("RequestId",$param) and $param["RequestId"] !== null) {
            $this->RequestId = $param["RequestId"];
        }
    }
}
